﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebDirectorio.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Buscador de Anexos</title>
    <style type="text/css">
        body
        {
            font-family: tahoma, sans-serif;
            font-size: 13px;
            color: #4B4B4B;
        }
        h3
        {
            margin: 0.25em 0;
        }
        .textoDescripcion
        {
            padding-left: 0.2em;
            float: right;
            padding-right: 0.5em;
        }
        table
        {
            background: transparent url('Imagenes/FondoDirectorio.png') repeat-x 0 -112px;
            border-bottom: 15px solid #E53F39;
        }
        table thead tr th
        {
            background-color: #EEEEEE;
            height: 30px;
            color: #4B4B4B;
            border-bottom: 1px solid red;
            text-align: center;
        }
        .espacioArriba
        {
            padding-top: 0.5em;
            
        }
        
        .espacioLados
        {
            padding: 0 0.9em;
        }
        .bordeRojo
        {
            border: 1px Red solid;
        }
        .titulo
        {
            font-family: tahoma, sans-serif;
        }
        
        .textoCuerpo
        {
            font-family: tahoma, verdana, arial, helvetica, sans-serif;
        }
        caption
        {
            border-bottom: 8px solid #4E5E80;
            background: transparent url('Imagenes/FondoDirectorio.png') repeat-x 0 -20px;
            padding: 0.5em 0;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="width: 100%">
        <table style="width: 100%;" cellpadding="0" cellspacing="0" border="0">
            <%--<caption>
                <b class="espacioLados">Directorio Telefónico</b>
            </caption>--%>
            <tbody>
                <tr>
                    <td class="espacioArriba">
                        <span class="textoDescripcion">Apellido:</span>
                    </td>
                    <td class="espacioArriba">
                        <asp:TextBox ID="_txtApellido" CssClass="bordeRojo" runat="server" Width="90px"></asp:TextBox>
                    </td>
                    <td rowspan="3">
                        <img style="height: 50px; width: 80px; margin-left: -1em;" src="Imagenes/Telefono.png"
                            alt="" title="Directorio Telfonico" />
                    </td>
                </tr>
                <tr>
                    <td class="espacioArriba">
                        <span class="textoDescripcion">Nombre:</span>
                    </td>
                    <td class="espacioArriba">
                        <asp:TextBox ID="_txtNombre" CssClass="bordeRojo" runat="server" Width="90px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right;">
                    
                        <asp:Button ID="_btnBuscar" Style="margin-right:0.5em;" runat="server" Text="Buscar" OnClick="_btnBuscar_Click"
                            Height="25px" Width="55px" Font-Size="11px" />
                   
                    </td>
                    <td>
                    <input type="button" style="height:25px;width:55px;font-size:11px;" onclick="javascript:window.parent.location.href='/Lists/Directorio/AllItems.aspx';" value="Todos" />
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <asp:HiddenField ID="HiddenField1" runat="server" />
    <asp:HiddenField ID="HiddenField2" runat="server" />
    <script type="text/javascript">
        obj = document.getElementById('HiddenField1');
        valNom = obj.value;
        obj2 = document.getElementById('HiddenField2');
        valAppe = obj2.value;

        if (valNom != '' || valAppe != '') {
            obj.value = '';
            obj2.value = '';
            window.open('ListaAnexos.aspx?nom=' + valNom + '&ape=' + valAppe, null, 'height=500,width=800, scrollbars=1');
        }
    </script>
    </form>
</body>
</html>
